package LogicDemo;

public class IfElse {

	public static void main(String[] args) {
		int x = -5, y = 0;
		if (x > 0) {
			y = 1;
		} else if (x != 0) {
			y = -1;
		} else {
			y = 0;
		}
		System.out.println("x=" + x + "," + "y=" + y);
	}
}
